import request from "@/utils/request";

// 查询消防安全列表
export function listFireSafety(query) {
  return request({
    url: "/firefighting/listPage",
    method: "get",
    params: query,
  });
}

// 查询消防安全详细（根据Id查询单个）
export function getFireSafetyById(query) {
  return request({
    url: "/firefighting/selectOne",
    method: "get",
    params: query,
  });
}

// 新增消防安全
export function addFireSafety(data) {
  return request({
    url: "/firefighting/add",
    method: "post",
    data: data,
  });
}

// 修改消防安全
export function updateFireSafety(data) {
  return request({
    url: "/firefighting/update",
    method: "put",
    data: data,
  });
}

// 删除消防安全
export function delFireSafety(Id) {
  return request({
    url: "/firefighting/delete/" + Id,
    method: "delete",
  });
}
